VT-d: don't crash when PTE bits 52 and up are non-zero
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Jan 2015 10:13:58 +0000 (11:13 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Jan 2015 10:13:58 +0000 (11:13 +0100)
commit46e0baf59105200d43612cf0c59de216958b008d
tree3474b38dcc527d07280861206161933141ca6426
parented8017155607db1bbe1f6ca41eac696b7ef8082b
VT-d: don't crash when PTE bits 52 and up are non-zero

This can (and will) be legitimately the case when sharing page tables
with EPT (more of a problem before p2m_access_rwx became zero, but
still possible even now when other than that is the default for a
guest), leading to an unconditional crash (in print_vtd_entries())
when a DMA remapping fault occurs.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/iommu.h
xen/drivers/passthrough/vtd/utils.c